package com.netease.testforeach;

import java.util.ArrayList;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        List<Integer> nums = new ArrayList<Integer>();
        for (int i = 1; i < 4; i++) {
            nums.add(i);
        }
        for (Integer num: nums) {
            switch (num) {
                case 1:
                    nums.remove(num);
                    break;
                case 2:
                    nums.remove(num);
                    break;
                case 3:
                    nums.remove(num);
                    break;
            }
        }

    }
}
